package services

import (
	"ssims/dao"
	"ssims/models"
)

func GetAllRelation(relation map[string]interface{}) (error, []models.Relation, int64) {
	err, relationData, total := dao.GetAllRelation(relation)
	return err, relationData, total
}

func DelRelation(id string) error {
	err := dao.DelRelation(id)
	return err
}

func UpdateRelation(relation models.Relation) error {
	err := dao.UpdateRelation(relation)
	return err
}

func AddRelation(relation models.Relation) error {
	err := dao.AddRelation(relation)
	return err
}
